package cn.wu.org.mapper;

import cn.wu.org.domain.Department;
import cn.wu.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //根据id查询
    Department findById(Long id);
    //查询全部
    List<Department> findAll();
    //添加
    void add(Department department);
    //删除
    void delete(Long id);
    //修改
    void update(Department department);
    //分页查询
    List<Department> queryAll(DepartmentQuery query);
    //查询总条数
    Integer queryCount(DepartmentQuery query);
}
